package com.jin.dto;

import com.jin.core.enumeration.LoginType;
import com.jin.dto.validators.TokenPassword;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
public class TokenGetDTO {
    @NotBlank(message = "account不允许为空")
    private String account;
    @TokenPassword(min = 7,max = 33,message = "{token.password}")
    private String password;
    //表示登录的类型，是枚举
    private LoginType logintype;
}
